<div class="main_content">
<h2><?php echo $news_item['title']?></h2>
<p><?php echo $news_item['text']?></p>
<div class="date_add"><img class="mini_calendar" src="<?php echo __PUBLIC_PATH?>/images/calendar.png"
	alt="calendar"><?php echo date("d F Y",strtotime($news_item['created']))?></div>
<div class="read_more">Коментарі:</div>
<div style="clear: both"></div>
 
	<?php if (Auth::getInstanse ()):?>	 
 	<form action="<?php echo $this->registry->router->url(array("news"=>"comment","id"=>$news_item['id']))?>" method="post">
 		<textarea style="width: 100%" rows="10" cols="100" name="comment"></textarea>
 		<br/>
 		<input type="submit" name="submit" value="Додати коментар">
 			
 		
 	</form>
 	<?php endif;?>

<?php foreach ($news_comments as $comment_item):?>
<div class="main_border" style="margin: 10px">
<div class="block_content">
	<div class="read_more comment_user">
		<a href="<?php echo $this->registry->router->url(array("user"=>"view","id"=>$comment_item['user_id']))?>" title="Добавлено: <?php echo $comment_item['created']?>">
			<?php echo $comment_item['user_login']?>
		</a>
	</div>
		
		<div class="comment_content">
			<?php echo $comment_item['comment']?>
		</div>
		
</div>
</div>
<?php endforeach;?>


</div>